package com.nstar.orderexpress.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.nstar.orderexpress.commands.PingCommand;
	import com.nstar.orderexpress.commands.PurchaseCommand;
	import com.nstar.orderexpress.commands.SearchCommand;

	public class AppControl extends FrontController
	{
		public static const PING : String = "ping";
		public static const QUERY : String = "query";
		public static const PURCHASE : String = "purchase";
		
		public static const SEARCH : String = "search";
		public static const SHOPPING : String = "shopping";
		
		public function AppControl()
		{
			//TODO: implement function
			//super();
			addCommand(AppControl.PING,PingCommand);
			addCommand(AppControl.PURCHASE,PurchaseCommand);
			
			addCommand(AppControl.SEARCH,SearchCommand);
			trace("add command complete.");
		}
		
	}
}